﻿using System;
using ProtoBuf;
using ZyGames.Framework.Common;
using ZyGames.Framework.Collection;
using ZyGames.Framework.Model;

namespace ZyGames.DZPocker.Model
{
	/// <summary>
	/// 桌子下注记录
	/// </summary>
	[Serializable, ProtoContract]
	[EntityTable(AccessLevel.WriteOnly, DbConfig.Log)]
	public class TableChipLog : LogEntity
	{
		/// <summary>
		/// </summary>
		public TableChipLog()
		{

		}
		/// <summary>
		/// </summary>
		public TableChipLog(int iD)
			: this()
		{
			ID = iD;
		}

		/// <summary>
		/// ID
		/// </summary>        
		[ProtoMember(1)]
		[EntityField(true, IsIdentity = true)]
		public int ID { get; set; }
		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(2)]
		public int UserId { get; set; }

		/// <summary>
		/// 登陆名
		/// </summary>        
		[ProtoMember(3)]
		[EntityField]
		public string Pid { get; set; }

		/// <summary>
		/// 昵称
		/// </summary>        
		[ProtoMember(4)]
		[EntityField]
		public string NickName { get; set; }

		/// <summary>
		/// 下注
		/// </summary>        
		[ProtoMember(5)]
		[EntityField]
		public string ChipLog { get; set; }
	}
}